#define _CRT_SECURE_NO_WARNINGS 2
#include"AVL.h"

void test1() {
	int a[]= { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
	AVL<int, int> root;
	for (auto& e : a) {
		root.Insert({ e,e });
		if(root.IsBalance())
			cout << "Insert:" << e << "->" <<"IsBalance" << endl;
	}
	root.InOrder();
}

int main() {
	test1();
	return 0;
}